package com.lagou.tomcat.container;

import com.lagou.tomcat.classloader.WebappClassLoader;

/**
 * @author zhangjinshan
 * @version 1.0
 * @description
 * @date 2021/7/15 上午8:25
 */
public class Context {

    private String contextPath;

    private ClassLoader classLoader;

    public Context(String contextPath, String absolutePath) {
        this.contextPath = contextPath;
        this.classLoader = new WebappClassLoader(absolutePath);;
    }

    public String getContextPath() {
        return contextPath;
    }

    public void setContextPath(String contextPath) {
        this.contextPath = contextPath;
    }

    public ClassLoader getClassLoader() {
        return classLoader;
    }

    public void setClassLoader(ClassLoader classLoader) {
        this.classLoader = classLoader;
    }
}
